import axios from "axios";

// 条件查询所有
export async function queryServiceOrder(page,limit,serviceOrderQuery){
    // console.log(serviceOrderQuery)
    var resp = await axios.get(
     "/api/pets_sys_hou_1/serviceOrder.do",{
        params:{
            method:"serviceOrder_page",
            serviceOrderQuery:serviceOrderQuery,
            page,
            limit
        },        
 
    });
    return resp;

}
// 修改
export async function updateServiceOrder(serviceOrder){
    var resp = await axios.get(
     "/api/pets_sys_hou_1/serviceOrder.do",{
        params:{
            method:"serviceOrder_update",
            serviceOrderId:serviceOrder.serviceOrderId,
            serviceOrderState:serviceOrder.serviceOrderState,

        }
    });
    return resp;
}

// 删除
export async function delServiceOrder(serviceOrderId){
    var resp = await axios.get(
     "/api/pets_sys_hou_1/serviceOrder.do",{
        params:{
            method:"serviceOrder_del",
            serviceOrderId:serviceOrderId,
        }
    });
    return resp;
}